<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美策平台</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <link rel="stylesheet" type="text/css" href="/h5/css/all.css">
    <link rel="stylesheet" type="text/css" href="/h5/css/app.css">
    <link rel="stylesheet" type="text/css" href="/h5/css/money.css">
    <script type="text/javascript" src="/h5/js/jquery.min.js"></script>
    <script type="text/javascript" src="/pc/js/all.js"></script>
</head>
<body style="font-size: 12px">


<div class="divbodyH5 moneyDiv">
    <div id="settingTitle">
        <b>我的信用等级</b>
        <a class="back" onclick="MC.back()"> <img src="/h5/images/return.png" id="settingRtn"></a>
    </div>

    <div class="myTable">

        <div class="buttonli">
            <div class="table-box clearfix">
                <span class="Title">我的信用等级 </span>
                <a class="Value" id="levelname">正在获取</a>
            </div>
        </div>
        <div class="buttonli">
            <a class="table-box clearfix" href="changeLevel.html">
                <span class="Title">修改等级 </span>
                <div class="arrow-box">
                    <b class="right">
                        <i class="right-arrow1"></i>
                        <i class="right-arrow2"></i>
                    </b>
                </div>
            </a>
        </div>


    </div>

    <div class="shuoming">
        <p class="titlep"><i>*</i>存入保证金越多,等级越高,工厂越能得到信任</p>
        <ul class="ul levelnamelist">
            <li class="title clearfix">
                <span class="z">等级名称</span>
                <span class="y">需要存入金额</span>
            </li>
        </ul>
    </div>

    <script>

        $(function(){
            MC.api('getLevelInfo',{},function(json){
                for(var i in json){
                    var one=json[i];
                    var li='<li class="clearfix">\n' +
                        '                <span class="z">'+one.name+'</span>\n' +
                        '                <span class="y">'+one.money+'元</span>\n' +
                        '            </li>';
                    $('.levelnamelist').append(li);
                }
            });

            MC.api('getuserLevel',{},function(json){
                $('#levelname').text(json.info.name);
            });
        });
    </script>

</div>



</body>
</html>